#!/usr/bin/python
import os,sys

if len(sys.argv) != 2:
	print 'Please input file.'
else:
	count = 0
	f = open(sys.argv[1], 'rb')
	while 1:
		buffer = f.read(8192*1024)
		if not buffer: break
		count += buffer.count('\n')
	f.close(  )
	print('The line count is ' + str(count))
